package com.wanmait.heatingrepair.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "workers_log")
public class WorkersLog implements Serializable {
     @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 添加时间
     */
    @TableField(value = "input_time")
    private Timestamp inputTime;

    /**
     * 管理员ID
     */
    @TableField(value = "workers_id")
    private Integer workersId;

    @TableField(exist = false)
    private  Workers workers;
    /**
     * ip地址
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 日志详细
     */
    @TableField(value = "info")
    private String info;

    private static final long serialVersionUID = 1L;

    public static final String COL_INPUT_TIME = "input_time";

    public static final String COL_ADMIN_ID = "works_id";

    public static final String COL_IP = "ip";

    public static final String COL_INFO = "info";
}